/*
 * CopyRight(C) Kenbin
 */

#ifndef LSG_ERRNO_INCLUDED
#define LSG_ERRNO_INCLUDED

namespace LSG {

    enum {	
	LSG_OPEN_ERR = -1,
	LSG_STAT_ERR = -2,
	LSG_MMAP_ERR = -3,
	LSG_WRITE_ERR = -4,
	LSG_READ_ERR = -5,
	LSG_LSEEK_ERR = -6,
	LSG_ALLOC_MEMORY_ERR = -7,
	LSG_CREATE_OBJECT_ERR = -8,
	LSG_TRUNCATE_ERR = -9,

	LSG_INVALID_BUDDYBIT_OFFSET = -101,
	LSG_INVALID_BUDDYBIT = -102,
	LSG_INVALID_BUDDYBIT_ALLOCED = -103,
	LSG_INVALID_REQUEST_BLOCK_COUNT = -104,
	LSG_INVALID_SLOT_CLASS = -105,
	LSG_INVALID_BYTE_OFFSET = -106,
	LSG_INVALID_DATA_LEN = -107,
	LSG_INVALID_BLOCK_SIZE = -108,
	LSG_INVALID_BLOCK_COUNT = -109,
	LSG_HASHFILE_TOO_LONG = -110,
	LSG_HASHFILE_MAYBE_DAMAGED = -111,
	LSG_HASHNODE_NOT_FOUND = -112,
	LSG_HASHNODE_EXHAUSTED = -113,
	LSG_DATA_TOO_LONG = -114,
	LSG_BUDDYBIT_FREE_FAIL = -115,

	LSG_CHOOSE_WRITER_FAIL = -116,
	LSG_INVALID_WRITER = -117,
	LSG_INVALID_WRITER_FLAG = -118,
	LSG_INVALID_WRITER_OBJECT = -119,
	LSG_INVALID_FILE_SEQ = -120,
	LSG_INVALID_BUDDYFILE_OBJECT = -121,
	LSG_INVALID_BUDDYFILE_FLAG = -122,
	LSG_BUDDYFILE_MAYBE_DAMAGED = -123,
    };

};

#endif

